<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<div></div>
<Div></Div>
<DIV></DIV>
<script>
var div =document.getElementsByTagName("div")
alert(div.length)
</script>
</body>
</html> 
